import { IParam } from '@/core';
import { User2ServiceBase } from './user-2-service-base';

/**
 * 用户2服务
 * 基于template/src/api/{{appEntities}}/data-service/{{appEntities}}-service.ts.hbs生成
 *
 * @export
 * @class User2Service
 * @extends User2ServiceBase
 */
export class User2Service extends User2ServiceBase {
	/**
	 * 基础数据服务实例
	 *
	 * @private
	 * @type { User2Service }
	 * @memberof User2Service
	 */
	private static basicDataServiceInstance: User2Service;

	/**
	 * 数据服务存储Map对象
	 *
	 * @private
	 * @type {Map<string, any>}
	 * @memberof User2Service
	 */
	private static dataServiceMap: Map<string, any> = new Map();

	/**
	 * Creates an instance of User2Service.
	 * @memberof User2Service
	 */
	constructor(opts?: IParam) {
		super(opts);
	}

	/**
	 * 获取实例
	 *
	 * @static
	 * @param 应用上下文
	 * @return {*}  { User2Service }
	 * @memberof User2Service
	 */
	static getInstance(opts?: IParam): User2Service {
		if (!this.basicDataServiceInstance) {
			this.basicDataServiceInstance = new User2Service(opts);
		}
		return this.basicDataServiceInstance;
	}
}
export default User2Service;
